package com.springboot.erp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.springboot.erp.entity.Outbound;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface OutboundMapper extends BaseMapper<Outbound> {

    Outbound selectOutboundList(@Param("id") Long id);

    int insertOutbound(Outbound entity);

    int insertOutboundItem(Outbound entity);

    int updateOutboundById(Outbound entity);

    int updateOutboundItem(Outbound entity);

    int deleteOutboundById(@Param("id") Long id);

    int deleteOutboundItemByHeaderId(@Param("id") Long id);

}